<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<head lang="en">
    <meta charset="UTF-8" />
    <style>
        #main1{
            margin: auto;
        }
    </style>

    <script th:src="@{/js/echarts.min.js}"></script>
    <script th:src="@{/js/echarts.js}"></script>
    <script th:src="@{/js/Chart.js}"></script>
</head>
<body>
<!-- 为 ECharts 准备一个具备大小（宽高）的 DOM -->  
         <div id="main1" style="width: 900px;height:400px;"></div>
         <div id="main2" style="width: 900px;height:400px;"></div>
         <div id="main3" style="width: 900px;height:400px;"></div>
<script type="text/javascript" th:src="@{/js/jquery-1.8.3.min.js}"></script>
         <script type="text/javascript">
        // 基于准备好的dom，初始化echarts实例
        var myChart1 = echarts.init(document.getElementById('main1'));
        var myChart2 = echarts.init(document.getElementById('main2'));
        var myChart3 = echarts.init(document.getElementById('main3'));
        // 指定图表的配置项和数据
        var app = {title : '坐标轴刻度与标签对齐'};
        option1 = {
            title: {
                text: '新增借款用户数',
                left: 'center'
            },
            backgroundColor: '#fefefe',
            color: ['#3398DB'],
            tooltip : {
                trigger: 'axis',
                axisPointer : {            // 坐标轴指示器，坐标轴触发有效
                    type : 'shadow'        // 默认为直线，可选为：'line' | 'shadow'
                }
            },
            legend: {
                show: true,
                bottom: 'top',
                data: ['借款成功的触发用户数']
            },
            grid: {
                left: '3%',
                right: '4%',
                bottom: '7%',
                containLabel: true
            },
            xAxis : [
                {
                    type : 'category',
                    data : ['5-01', '5-02', '5-03', '5-04', '5-05', '5-06', '5-07', '5-08', '5-09', '5-10', '5-11', '5-12', '5-13'],
                    axisTick: {
                        alignWithLabel: true
                    }
                }
            ],
            yAxis : [
                {
                    type : 'value'
                }
            ],
            series : [
                {
                    name:'借款成功的触发用户数',
                    type:'bar',
                    barWidth: '60%',
                    data:[10, 52, 200, 334, 390, 330, 220,220,32,321,120,145,255]
                }
            ]
        };
        myChart1.setOption(option1);
    </script>
</body>
</html>